package cn.mw.cmdb.timeplan.entity;

import cn.mw.cmdb.entity.PropertyTypeLong;
import cn.mw.cmdb.entity.PropertyTypeString;
import cn.mw.components.mongodb.anno.AutoId;
import cn.mw.components.mongodb.anno.CMDBProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import kotlin.jvm.Transient;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author gengjb
 * @description 时间计划关联模块表
 * @date 2024/4/24 10:32
 */
@Data
@Document("mw_cmdbmd_timeplan_module")
public class MwTimePlanRelationModuleDto {

    @AutoId
    private String id;

    @Schema(description = "计划名称")
    @Transient
    private String timePlanName;

    @Schema(description = "时间计划ID")
    @CMDBProperty(searchType = PropertyTypeString.ID)
    private String timePlanId;

    @Schema(description = "模块名称")
    @CMDBProperty(searchType = PropertyTypeString.ID)
    private String moduleName;

    @Schema(description = "模块数据ID")
    @CMDBProperty(searchType = PropertyTypeString.ID)
    private String typeId;

    @Schema(description = "任务描述")
    @CMDBProperty(searchType = PropertyTypeString.ID)
    private String taskDescription;

    @Schema(description = "任务开始时间")
    @Transient
    private String taskStartTime;

    @Schema(description = "任务结束时间")
    @Transient
    private String taskEndTime;

    @Schema(description = "任务耗时")
    @Transient
    private String timeConsuming;

    @Schema(description = "任务ID")
    @CMDBProperty(searchType = PropertyTypeLong.ID)
    private Long taskId;



}
